import { RouteObject } from 'config/routes';

export default [
  {
    name: '测试',
    path: '/echart-test',
    component: '@/pages/back/EchartTest',
    access: 'routeAccess',
    accessKey: 'echart-test',
  },
  {
    name: '表单测试',
    path: '/form-test',
    component: '@/pages/back/FormTest',
    access: 'routeAccess',
    accessKey: 'form-test',
  },
  {
    name: '导入测试',
    path: '/importTest',
    component: '@/pages/back/ImportTest',
    access: 'routeAccess',
    accessKey: 'import-test',
  },
  {
    name: '上传测试',
    path: '/uploadTest',
    component: '@/pages/back/UploadTest',
    access: 'routeAccess',
    accessKey: 'upload-test',
  },
  {
    name: 'test1',
    path: '/test1',
    component: '@/pages/back/Test1',
    access: 'routeAccess',
    accessKey: 'upload-test',
  },
  // {
  //   name: '测试测试',
  //   path: '/testHome',
  //   component: '@/pages/back/TestHome',
  //   access: 'routeAccess',
  //   accessKey: 'test-home',
  // },
  {
    name: 'react打印测试',
    path: '/printTest',
    component: '@/pages/back/PrintTest',
    access: 'routeAccess',
    accessKey: 'print-test',
  },
  {
    name: '类组件函数组件区别',
    path: '/classAndFunction',
    component: '@/pages/class-and-fun',
    access: 'routeAccess',
    accessKey: 'print-test',
  },
  {
    name: '维保管理',
    path: '/back',
    // component: '.',
    icon: 'icon-a-Property1shiwuguanli',
    access: 'routeAccess',
    accessKey: 'back',
    routes: [
      {
        name: ' 测试页面',
        path: '/back/crud',
        component: '@/pages/back/Crud',
        access: 'routeAccess',
        accessKey: 'back-crud',
      },
      {
        name: '维保计划',
        path: '/back/table',
        component: '@/pages/back/TextTable',
        access: 'routeAccess',
        accessKey: 'back-table',
      },
      {
        name: 'ProTable测试',
        path: '/back/protable',
        component: '@/pages/back/ProTableTest',
        access: 'routeAccess',
        accessKey: 'back-protable',
      },
      {
        name: '维保计划详情',
        path: '/back/protable/detail',
        component: '@/pages/back/ProTableTest/Detail',
        access: 'routeAccess',
        accessKey: 'back-protable-detail',
        hideInMenu: true,
        meta: {
          showback: true,
        },
      },
    ],
  },
] as RouteObject[];
